from selenium import webdriver
import time
from selenium.webdriver.common.by import By

driver = webdriver.Edge()
driver.get('https://www.baidu.com/')
# 点击照相机
driver.find_element(By.CLASS_NAME, 'soutu-btn').click()
time.sleep(2)
# 上传
driver.find_element(By.CLASS_NAME, 'upload-pic').send_keys(r'C:\Users\86155\Pictures\Screenshots\uqaqhuvavt0.jpg')
time.sleep(5)
# 下载
driver = webdriver.Edge()
driver.get('https://zip.rjsc.top/index.html?keywordid=65954265233&creativeid=9205293063&groupid=1710605271&planid=331426209&device=pc&qhclickid=68bceb6418e75ecc')
f = driver.find_element(By.XPATH, '/html/body/iframe[1]')
driver.switch_to.frame(f)
driver.find_element(By.XPATH, '/html/body/div/div[2]/div[2]/div[2]/div').click()
time.sleep(6)